package com.provider.service.impl;

import com.api.service.TestService;
import com.entity.po.Message;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.ArrayList;
import java.util.List;

@DubboService(version = "1.0.0",timeout = 3000)
public class TestServiceImpl implements TestService {

    public List<Message> findMessage() {
        List<Message> ml =new ArrayList();
        Message ms1= new Message();
        ms1.setId(1);
        ms1.setCity("上海");
        ms1.setWeather("天气晴");

        Message ms2= new Message();
        ms2.setId(2);
        ms2.setCity("杭州");
        ms2.setWeather("天气晴");
        ml.add(ms1);
        ml.add(ms2);
        return ml;
    }

}
